<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: src/libslic3r/Polygon.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f69e6fbaea45487e96bc9ed8ccf9ff8f.html">libslic3r</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Polygon.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_polygon_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef slic3r_Polygon_hpp_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define slic3r_Polygon_hpp_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="libslic3r_8h.html">libslic3r.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_line_8hpp.html">Line.hpp</a>&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_multi_point_8hpp.html">MultiPoint.hpp</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_slic3r.html">Slic3r</a> {</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">class </span><a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">   13</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_slic3r_1_1_polyline.html">Polyline</a>;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">typedef</span> std::vector&lt;Polygon&gt; <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_polygon.html">   16</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a> : <span class="keyword">public</span> <a class="code" href="class_slic3r_1_1_multi_point.html">MultiPoint</a> {</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keyword">operator</span> <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keyword">operator</span> <a class="code" href="class_slic3r_1_1_polyline.html">Polyline</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="class_slic3r_1_1_point.html">Point</a>&amp; <a class="code" href="class_slic3r_1_1_polygon.html#a10646113e0112da1cf84341ad3d7767b">operator[]</a>(Points::size_type idx);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_point.html">Point</a>&amp; <a class="code" href="class_slic3r_1_1_polygon.html#a10646113e0112da1cf84341ad3d7767b">operator[]</a>(Points::size_type idx) <span class="keyword">const</span>;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_polygon.html#abf32e05ca8a079c0d3193245dac5baa3">   23</a></span>&#160;    <a class="code" href="class_slic3r_1_1_polygon.html#abf32e05ca8a079c0d3193245dac5baa3">Polygon</a>() {};</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_polygon.html#a48bd99bac460345469ecbb65e2b53307">   24</a></span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_slic3r_1_1_polygon.html#a48bd99bac460345469ecbb65e2b53307">Polygon</a>(<span class="keyword">const</span> <a class="code" href="namespace_slic3r.html#a47d04f71423ecef9ad36e18046f11c3c">Points</a> &amp;<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>): <a class="code" href="class_slic3r_1_1_multi_point.html">MultiPoint</a>(points) {};</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="class_slic3r_1_1_point.html">Point</a> <a class="code" href="class_slic3r_1_1_polygon.html#a6287825ac762b14eb6b2986ff1e87695">last_point</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="namespace_slic3r.html#a0913e2e6b7d28032c33cfee03f145fba">Lines</a> <a class="code" href="class_slic3r_1_1_polygon.html#aed148c3f090ccd57dcca4540e0a6460c">lines</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="class_slic3r_1_1_polyline.html">Polyline</a> <a class="code" href="class_slic3r_1_1_polygon.html#a29afdd3040ed3029ad816b7a28e633e6">split_at_vertex</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_point.html">Point</a> &amp;point) <span class="keyword">const</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="comment">// Split a closed polygon into an open polyline, with the split point duplicated at both ends.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <a class="code" href="class_slic3r_1_1_polyline.html">Polyline</a> <a class="code" href="class_slic3r_1_1_polygon.html#a31cd9e89f63d38271adee5c010324857">split_at_index</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="comment">// Split a closed polygon into an open polyline, with the split point duplicated at both ends.</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="class_slic3r_1_1_polyline.html">Polyline</a> <a class="code" href="class_slic3r_1_1_polygon.html#abf140b25598594eda56f07a439485360">split_at_first_point</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="namespace_slic3r.html#a47d04f71423ecef9ad36e18046f11c3c">Points</a> <a class="code" href="class_slic3r_1_1_polygon.html#ab769fa33bd95d21e5955aeb0fdf81489">equally_spaced_points</a>(<span class="keywordtype">double</span> distance) <span class="keyword">const</span>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_slic3r_1_1_polygon.html#a67681a39403ca355b7f9c309d98593d1">area</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_polygon.html#afa775e7ffae25eaedb3d8d7c41c70ae1">is_counter_clockwise</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_polygon.html#ad8eff6cb8d1321f0a1099f30dcaa343e">is_clockwise</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_polygon.html#a8cf62d2794105686bbf129659c548d46">make_counter_clockwise</a>();</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_polygon.html#a274013fb2c78ab1ef9dc4c0bd06b8b11">make_clockwise</a>();</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_polygon.html#a9ec82a54ee54a2459292ba7c8b831bb9">is_valid</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="comment">// Does an unoriented polygon contain a point?</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">// Tested by counting intersections along a horizontal line.</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_polygon.html#a9ab8db101e57f31ecfab23442dfcd62c">contains</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_point.html">Point</a> &amp;point) <span class="keyword">const</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_polygon.html#abaa0bc9396c6824a3a03e815c9d1eb4a">douglas_peucker</a>(<span class="keywordtype">double</span> tolerance);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_polygon.html#a163aa64425c804c2bc7f1f2fe4af4108">remove_vertical_collinear_points</a>(<a class="code" href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">coord_t</a> tolerance);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    Polygons <a class="code" href="class_slic3r_1_1_polygon.html#a59b799512f762630c498e4b2a08a7cbe">simplify</a>(<span class="keywordtype">double</span> tolerance) <span class="keyword">const</span>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_polygon.html#a59b799512f762630c498e4b2a08a7cbe">simplify</a>(<span class="keywordtype">double</span> tolerance, Polygons &amp;polygons) <span class="keyword">const</span>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_polygon.html#a470967afcaf9d3cf33654e9aac3efbba">triangulate_convex</a>(Polygons* polygons) <span class="keyword">const</span>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="class_slic3r_1_1_point.html">Point</a> <a class="code" href="class_slic3r_1_1_polygon.html#aad1f8d03b65122e7163577e16a7c6c64">centroid</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    std::string <a class="code" href="class_slic3r_1_1_polygon.html#ab8ffd65d4c26a032f00b19a35fca737f">wkt</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="namespace_slic3r.html#a47d04f71423ecef9ad36e18046f11c3c">Points</a> <a class="code" href="class_slic3r_1_1_polygon.html#a43220fdfb02380cb7c580761b7499c3d">concave_points</a>(<span class="keywordtype">double</span> angle = <a class="code" href="namespace_slic3r.html#a5c9e075207afe0701500fff332a281bc">PI</a>) <span class="keyword">const</span>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="namespace_slic3r.html#a47d04f71423ecef9ad36e18046f11c3c">Points</a> <a class="code" href="class_slic3r_1_1_polygon.html#ac21417244d7e117048b6f47bb9024a9f">convex_points</a>(<span class="keywordtype">double</span> angle = <a class="code" href="namespace_slic3r.html#a5c9e075207afe0701500fff332a281bc">PI</a>) <span class="keyword">const</span>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;};</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">inline</span> Polygons</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespace_slic3r.html#a6233e721838c1b999c94a75fe23c3c43">   54</a></span>&#160;<a class="code" href="namespace_slic3r.html#abe0191f434c5cae8a56e3df77f00de69">operator+</a>(Polygons src1, <span class="keyword">const</span> Polygons &amp;src2) {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="namespace_slic3r.html#acf7db809cbd1d919d0bd314f5fbdf4a9">append_to</a>(src1, src2);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">return</span> src1;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;};</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">inline</span> Polygons&amp;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="namespace_slic3r.html#a0c72b34a866b7a0891cec89a9a792973">   60</a></span>&#160;<a class="code" href="namespace_slic3r.html#af8928c899e46c851436168cd2e66849f">operator+=</a>(Polygons &amp;dst, <span class="keyword">const</span> Polygons &amp;src2) {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="namespace_slic3r.html#acf7db809cbd1d919d0bd314f5fbdf4a9">append_to</a>(dst, src2);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">return</span> dst;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;};</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;}</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">// start Boost</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#include &lt;boost/polygon/polygon.hpp&gt;</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceboost.html">boost</a> { <span class="keyword">namespace </span>polygon {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1geometry__concept_3_01_polygon_01_4.html#a8ebe9403fd4243233c6adf190ba4a85e">   71</a></span>&#160;    <span class="keyword">struct </span>geometry_concept&lt;<a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&gt;{ <span class="keyword">typedef</span> polygon_concept <a class="code" href="structboost_1_1polygon_1_1geometry__concept_3_01_polygon_01_4.html#a8ebe9403fd4243233c6adf190ba4a85e">type</a>; };</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html">   74</a></span>&#160;    <span class="keyword">struct </span>polygon_traits&lt;<a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&gt; {</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ac05d7b359c09befc7012a496204e1618">   75</a></span>&#160;        <span class="keyword">typedef</span> <a class="code" href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">coord_t</a> <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ac05d7b359c09befc7012a496204e1618">coordinate_type</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#a6f12400042a25cffd367d92fbad51cd5">   76</a></span>&#160;        <span class="keyword">typedef</span> Points::const_iterator <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#a6f12400042a25cffd367d92fbad51cd5">iterator_type</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#aa4bc01b427e358fddd934ddb24703883">   77</a></span>&#160;        <span class="keyword">typedef</span> <a class="code" href="class_slic3r_1_1_point.html">Point</a> <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#aa4bc01b427e358fddd934ddb24703883">point_type</a>;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="comment">// Get the begin iterator</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#a77653592ee287df7fcd22d4f3817bbcc">   80</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> iterator_type <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#a77653592ee287df7fcd22d4f3817bbcc">begin_points</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&amp; t) {</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            <span class="keywordflow">return</span> t.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.begin();</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        }</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="comment">// Get the end iterator</span></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ab6c9abf1fcc2ad31122c983a222751c3">   85</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> iterator_type <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ab6c9abf1fcc2ad31122c983a222751c3">end_points</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&amp; t) {</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <span class="keywordflow">return</span> t.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.end();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        }</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="comment">// Get the number of sides of the polygon</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ae4e66ce7bd1fd68208770f7f7b28c2fd">   90</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> std::size_t <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ae4e66ce7bd1fd68208770f7f7b28c2fd">size</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&amp; t) {</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            <span class="keywordflow">return</span> t.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.size();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="comment">// Get the winding direction of the polygon</span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ad6c7fd0f9f4de4be8b1b069dc123040a">   95</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> winding_direction <a class="code" href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ad6c7fd0f9f4de4be8b1b069dc123040a">winding</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&amp; t) {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            <span class="keywordflow">return</span> unknown_winding;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        }</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    };</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__mutable__traits_3_01_polygon_01_4.html">  101</a></span>&#160;    <span class="keyword">struct </span>polygon_mutable_traits&lt;<a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&gt; {</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="comment">// expects stl style iterators</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> iT&gt;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__mutable__traits_3_01_polygon_01_4.html#a957140c1fd2ab0ece170479ec494b1af">  104</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&amp; <a class="code" href="structboost_1_1polygon_1_1polygon__mutable__traits_3_01_polygon_01_4.html#a957140c1fd2ab0ece170479ec494b1af">set_points</a>(<a class="code" href="class_slic3r_1_1_polygon.html">Polygon</a>&amp; polygon, iT input_begin, iT input_end) {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            polygon.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.clear();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            <span class="keywordflow">while</span> (input_begin != input_end) {</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                polygon.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.push_back(<a class="code" href="class_slic3r_1_1_point.html">Point</a>());</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                boost::polygon::assign(polygon.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.back(), *input_begin);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                ++input_begin;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="comment">// skip last point since Boost will set last point = first point</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            polygon.<a class="code" href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">points</a>.pop_back();</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            <span class="keywordflow">return</span> polygon;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        }</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    };</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    </div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1geometry__concept_3_01_polygons_01_4.html#af0d1b1c2ceff80af429c2ccda2cfd503">  118</a></span>&#160;    <span class="keyword">struct </span>geometry_concept&lt;<a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&gt; { <span class="keyword">typedef</span> polygon_set_concept <a class="code" href="structboost_1_1polygon_1_1geometry__concept_3_01_polygons_01_4.html#af0d1b1c2ceff80af429c2ccda2cfd503">type</a>; };</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="comment">//next we map to the concept through traits</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html">  122</a></span>&#160;    <span class="keyword">struct </span>polygon_set_traits&lt;<a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&gt; {</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#accbdb024a7647adfd6b5acee3def56f6">  123</a></span>&#160;        <span class="keyword">typedef</span> <a class="code" href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">coord_t</a> <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#accbdb024a7647adfd6b5acee3def56f6">coordinate_type</a>;</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a55cedecf63a5819bfbe97f0a15108c3e">  124</a></span>&#160;        <span class="keyword">typedef</span> Polygons::const_iterator <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a55cedecf63a5819bfbe97f0a15108c3e">iterator_type</a>;</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#ac3a6c473481e6b919c8b5d1a782c2624">  125</a></span>&#160;        <span class="keyword">typedef</span> <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a> <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#ac3a6c473481e6b919c8b5d1a782c2624">operator_arg_type</a>;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a2bd6d4b31e9be97b462d8d6dc08ed6f9">  127</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> iterator_type <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a2bd6d4b31e9be97b462d8d6dc08ed6f9">begin</a>(<span class="keyword">const</span> <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&amp; polygon_set) {</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            <span class="keywordflow">return</span> polygon_set.begin();</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        }</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a99640eed059b12b9d90b0ea93ff5db25">  131</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> iterator_type <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a99640eed059b12b9d90b0ea93ff5db25">end</a>(<span class="keyword">const</span> <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&amp; polygon_set) {</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            <span class="keywordflow">return</span> polygon_set.end();</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        }</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="comment">//don&#39;t worry about these, just return false from them</span></div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a907dc695a7114c2c9920d97ad21ac327">  136</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a907dc695a7114c2c9920d97ad21ac327">clean</a>(<span class="keyword">const</span> <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&amp; polygon_set) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a2b2ba88daab0b912fc40002b80380534">  137</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a2b2ba88daab0b912fc40002b80380534">sorted</a>(<span class="keyword">const</span> <a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&amp; polygon_set) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    };</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__mutable__traits_3_01_polygons_01_4.html">  141</a></span>&#160;    <span class="keyword">struct </span>polygon_set_mutable_traits&lt;<a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&gt; {</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> input_iterator_type&gt;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="structboost_1_1polygon_1_1polygon__set__mutable__traits_3_01_polygons_01_4.html#a6767a3670330ee02524f5584fe21b287">  143</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <span class="keyword">set</span>(<a class="code" href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Polygons</a>&amp; polygons, input_iterator_type input_begin, input_iterator_type input_end) {</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;          polygons.assign(input_begin, input_end);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    };</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;} }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="comment">// end Boost</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_slic3r_1_1_polygon_html_ac21417244d7e117048b6f47bb9024a9f"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#ac21417244d7e117048b6f47bb9024a9f">Slic3r::Polygon::convex_points</a></div><div class="ttdeci">Points convex_points(double angle=PI) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:274</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__mutable__traits_3_01_polygon_01_4_html_a957140c1fd2ab0ece170479ec494b1af"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__mutable__traits_3_01_polygon_01_4.html#a957140c1fd2ab0ece170479ec494b1af">boost::polygon::polygon_mutable_traits&lt; Polygon &gt;::set_points</a></div><div class="ttdeci">static Polygon &amp; set_points(Polygon &amp;polygon, iT input_begin, iT input_end)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:104</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_ac05d7b359c09befc7012a496204e1618"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ac05d7b359c09befc7012a496204e1618">boost::polygon::polygon_traits&lt; Polygon &gt;::coordinate_type</a></div><div class="ttdeci">coord_t coordinate_type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:75</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_ac3a6c473481e6b919c8b5d1a782c2624"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#ac3a6c473481e6b919c8b5d1a782c2624">boost::polygon::polygon_set_traits&lt; Polygons &gt;::operator_arg_type</a></div><div class="ttdeci">Polygons operator_arg_type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:125</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_a2b2ba88daab0b912fc40002b80380534"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a2b2ba88daab0b912fc40002b80380534">boost::polygon::polygon_set_traits&lt; Polygons &gt;::sorted</a></div><div class="ttdeci">static bool sorted(const Polygons &amp;polygon_set)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:137</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_ab8ffd65d4c26a032f00b19a35fca737f"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#ab8ffd65d4c26a032f00b19a35fca737f">Slic3r::Polygon::wkt</a></div><div class="ttdeci">std::string wkt() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:234</div></div>
<div class="ttc" id="class_slic3r_1_1_polyline_html"><div class="ttname"><a href="class_slic3r_1_1_polyline.html">Slic3r::Polyline</a></div><div class="ttdef"><b>Definition:</b> Polyline.hpp:18</div></div>
<div class="ttc" id="libslic3r_8h_html"><div class="ttname"><a href="libslic3r_8h.html">libslic3r.h</a></div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_ad6c7fd0f9f4de4be8b1b069dc123040a"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ad6c7fd0f9f4de4be8b1b069dc123040a">boost::polygon::polygon_traits&lt; Polygon &gt;::winding</a></div><div class="ttdeci">static winding_direction winding(const Polygon &amp;t)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:95</div></div>
<div class="ttc" id="namespaceboost_html"><div class="ttname"><a href="namespaceboost.html">boost</a></div><div class="ttdef"><b>Definition:</b> ExPolygon.hpp:76</div></div>
<div class="ttc" id="namespace_slic3r_html_ab6d77625bc973b0c03e577944f90f297"><div class="ttname"><a href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">Slic3r::coord_t</a></div><div class="ttdeci">long coord_t</div><div class="ttdef"><b>Definition:</b> libslic3r.h:41</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_ab6c9abf1fcc2ad31122c983a222751c3"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ab6c9abf1fcc2ad31122c983a222751c3">boost::polygon::polygon_traits&lt; Polygon &gt;::end_points</a></div><div class="ttdeci">static iterator_type end_points(const Polygon &amp;t)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:85</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a29afdd3040ed3029ad816b7a28e633e6"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a29afdd3040ed3029ad816b7a28e633e6">Slic3r::Polygon::split_at_vertex</a></div><div class="ttdeci">Polyline split_at_vertex(const Point &amp;point) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:50</div></div>
<div class="ttc" id="namespace_slic3r_html_acf7db809cbd1d919d0bd314f5fbdf4a9"><div class="ttname"><a href="namespace_slic3r.html#acf7db809cbd1d919d0bd314f5fbdf4a9">Slic3r::append_to</a></div><div class="ttdeci">void append_to(std::vector&lt; T &gt; &amp;dst, const std::vector&lt; T &gt; &amp;src)</div><div class="ttdef"><b>Definition:</b> libslic3r.h:72</div></div>
<div class="ttc" id="namespace_slic3r_html_ac070ff2d90c6488a48adf1814cdae06c"><div class="ttname"><a href="namespace_slic3r.html#ac070ff2d90c6488a48adf1814cdae06c">Slic3r::Polygons</a></div><div class="ttdeci">std::vector&lt; Polygon &gt; Polygons</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:13</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_a77653592ee287df7fcd22d4f3817bbcc"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#a77653592ee287df7fcd22d4f3817bbcc">boost::polygon::polygon_traits&lt; Polygon &gt;::begin_points</a></div><div class="ttdeci">static iterator_type begin_points(const Polygon &amp;t)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:80</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a43220fdfb02380cb7c580761b7499c3d"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a43220fdfb02380cb7c580761b7499c3d">Slic3r::Polygon::concave_points</a></div><div class="ttdeci">Points concave_points(double angle=PI) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:249</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_a6f12400042a25cffd367d92fbad51cd5"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#a6f12400042a25cffd367d92fbad51cd5">boost::polygon::polygon_traits&lt; Polygon &gt;::iterator_type</a></div><div class="ttdeci">Points::const_iterator iterator_type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:76</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_aed148c3f090ccd57dcca4540e0a6460c"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#aed148c3f090ccd57dcca4540e0a6460c">Slic3r::Polygon::lines</a></div><div class="ttdeci">virtual Lines lines() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:38</div></div>
<div class="ttc" id="namespace_slic3r_html_a47d04f71423ecef9ad36e18046f11c3c"><div class="ttname"><a href="namespace_slic3r.html#a47d04f71423ecef9ad36e18046f11c3c">Slic3r::Points</a></div><div class="ttdeci">std::vector&lt; Point &gt; Points</div><div class="ttdef"><b>Definition:</b> Point.hpp:21</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_ad8eff6cb8d1321f0a1099f30dcaa343e"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#ad8eff6cb8d1321f0a1099f30dcaa343e">Slic3r::Polygon::is_clockwise</a></div><div class="ttdeci">bool is_clockwise() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:101</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a163aa64425c804c2bc7f1f2fe4af4108"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a163aa64425c804c2bc7f1f2fe4af4108">Slic3r::Polygon::remove_vertical_collinear_points</a></div><div class="ttdeci">void remove_vertical_collinear_points(coord_t tolerance)</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:160</div></div>
<div class="ttc" id="namespace_slic3r_html_abe0191f434c5cae8a56e3df77f00de69"><div class="ttname"><a href="namespace_slic3r.html#abe0191f434c5cae8a56e3df77f00de69">Slic3r::operator+</a></div><div class="ttdeci">ExPolygons operator+(ExPolygons src1, const ExPolygons &amp;src2)</div><div class="ttdef"><b>Definition:</b> ExPolygon.hpp:65</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_aad1f8d03b65122e7163577e16a7c6c64"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#aad1f8d03b65122e7163577e16a7c6c64">Slic3r::Polygon::centroid</a></div><div class="ttdeci">Point centroid() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:218</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_aa4bc01b427e358fddd934ddb24703883"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#aa4bc01b427e358fddd934ddb24703883">boost::polygon::polygon_traits&lt; Polygon &gt;::point_type</a></div><div class="ttdeci">Point point_type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:77</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a48bd99bac460345469ecbb65e2b53307"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a48bd99bac460345469ecbb65e2b53307">Slic3r::Polygon::Polygon</a></div><div class="ttdeci">Polygon(const Points &amp;points)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:24</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_afa775e7ffae25eaedb3d8d7c41c70ae1"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#afa775e7ffae25eaedb3d8d7c41c70ae1">Slic3r::Polygon::is_counter_clockwise</a></div><div class="ttdeci">bool is_counter_clockwise() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:95</div></div>
<div class="ttc" id="class_slic3r_1_1_multi_point_html_a5f33254e616268f728969886c4ed5d85"><div class="ttname"><a href="class_slic3r_1_1_multi_point.html#a5f33254e616268f728969886c4ed5d85">Slic3r::MultiPoint::points</a></div><div class="ttdeci">Points points</div><div class="ttdef"><b>Definition:</b> MultiPoint.hpp:17</div></div>
<div class="ttc" id="namespace_slic3r_html_af8928c899e46c851436168cd2e66849f"><div class="ttname"><a href="namespace_slic3r.html#af8928c899e46c851436168cd2e66849f">Slic3r::operator+=</a></div><div class="ttdeci">Points &amp; operator+=(Points &amp;dst, const Points &amp;src)</div><div class="ttdef"><b>Definition:</b> Point.hpp:83</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_ab769fa33bd95d21e5955aeb0fdf81489"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#ab769fa33bd95d21e5955aeb0fdf81489">Slic3r::Polygon::equally_spaced_points</a></div><div class="ttdeci">Points equally_spaced_points(double distance) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:83</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4_html_ae4e66ce7bd1fd68208770f7f7b28c2fd"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__traits_3_01_polygon_01_4.html#ae4e66ce7bd1fd68208770f7f7b28c2fd">boost::polygon::polygon_traits&lt; Polygon &gt;::size</a></div><div class="ttdeci">static std::size_t size(const Polygon &amp;t)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:90</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_a99640eed059b12b9d90b0ea93ff5db25"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a99640eed059b12b9d90b0ea93ff5db25">boost::polygon::polygon_set_traits&lt; Polygons &gt;::end</a></div><div class="ttdeci">static iterator_type end(const Polygons &amp;polygon_set)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:131</div></div>
<div class="ttc" id="namespace_slic3r_html_a0913e2e6b7d28032c33cfee03f145fba"><div class="ttname"><a href="namespace_slic3r.html#a0913e2e6b7d28032c33cfee03f145fba">Slic3r::Lines</a></div><div class="ttdeci">std::vector&lt; Line &gt; Lines</div><div class="ttdef"><b>Definition:</b> Line.hpp:12</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_abf140b25598594eda56f07a439485360"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#abf140b25598594eda56f07a439485360">Slic3r::Polygon::split_at_first_point</a></div><div class="ttdeci">Polyline split_at_first_point() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:77</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a59b799512f762630c498e4b2a08a7cbe"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a59b799512f762630c498e4b2a08a7cbe">Slic3r::Polygon::simplify</a></div><div class="ttdeci">Polygons simplify(double tolerance) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:180</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a470967afcaf9d3cf33654e9aac3efbba"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a470967afcaf9d3cf33654e9aac3efbba">Slic3r::Polygon::triangulate_convex</a></div><div class="ttdeci">void triangulate_convex(Polygons *polygons) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:202</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_a2bd6d4b31e9be97b462d8d6dc08ed6f9"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a2bd6d4b31e9be97b462d8d6dc08ed6f9">boost::polygon::polygon_set_traits&lt; Polygons &gt;::begin</a></div><div class="ttdeci">static iterator_type begin(const Polygons &amp;polygon_set)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:127</div></div>
<div class="ttc" id="class_slic3r_1_1_point_html"><div class="ttname"><a href="class_slic3r_1_1_point.html">Slic3r::Point</a></div><div class="ttdef"><b>Definition:</b> Point.hpp:27</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_accbdb024a7647adfd6b5acee3def56f6"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#accbdb024a7647adfd6b5acee3def56f6">boost::polygon::polygon_set_traits&lt; Polygons &gt;::coordinate_type</a></div><div class="ttdeci">coord_t coordinate_type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:123</div></div>
<div class="ttc" id="namespace_slic3r_html"><div class="ttname"><a href="namespace_slic3r.html">Slic3r</a></div><div class="ttdef"><b>Definition:</b> BoundingBox.cpp:4</div></div>
<div class="ttc" id="namespace_slic3r_html_a5c9e075207afe0701500fff332a281bc"><div class="ttname"><a href="namespace_slic3r.html#a5c9e075207afe0701500fff332a281bc">Slic3r::PI</a></div><div class="ttdeci">constexpr auto PI</div><div class="ttdef"><b>Definition:</b> libslic3r.h:60</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_abaa0bc9396c6824a3a03e815c9d1eb4a"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#abaa0bc9396c6824a3a03e815c9d1eb4a">Slic3r::Polygon::douglas_peucker</a></div><div class="ttdeci">void douglas_peucker(double tolerance)</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:152</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a6287825ac762b14eb6b2986ff1e87695"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a6287825ac762b14eb6b2986ff1e87695">Slic3r::Polygon::last_point</a></div><div class="ttdeci">Point last_point() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:32</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a67681a39403ca355b7f9c309d98593d1"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a67681a39403ca355b7f9c309d98593d1">Slic3r::Polygon::area</a></div><div class="ttdeci">double area() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:89</div></div>
<div class="ttc" id="_line_8hpp_html"><div class="ttname"><a href="_line_8hpp.html">Line.hpp</a></div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_a907dc695a7114c2c9920d97ad21ac327"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a907dc695a7114c2c9920d97ad21ac327">boost::polygon::polygon_set_traits&lt; Polygons &gt;::clean</a></div><div class="ttdeci">static bool clean(const Polygons &amp;polygon_set)</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:136</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a8cf62d2794105686bbf129659c548d46"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a8cf62d2794105686bbf129659c548d46">Slic3r::Polygon::make_counter_clockwise</a></div><div class="ttdeci">bool make_counter_clockwise()</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:107</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a10646113e0112da1cf84341ad3d7767b"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a10646113e0112da1cf84341ad3d7767b">Slic3r::Polygon::operator[]</a></div><div class="ttdeci">Point &amp; operator[](Points::size_type idx)</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:20</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a274013fb2c78ab1ef9dc4c0bd06b8b11"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a274013fb2c78ab1ef9dc4c0bd06b8b11">Slic3r::Polygon::make_clockwise</a></div><div class="ttdeci">bool make_clockwise()</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:117</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1geometry__concept_3_01_polygons_01_4_html_af0d1b1c2ceff80af429c2ccda2cfd503"><div class="ttname"><a href="structboost_1_1polygon_1_1geometry__concept_3_01_polygons_01_4.html#af0d1b1c2ceff80af429c2ccda2cfd503">boost::polygon::geometry_concept&lt; Polygons &gt;::type</a></div><div class="ttdeci">polygon_set_concept type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:118</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html"><div class="ttname"><a href="class_slic3r_1_1_polygon.html">Slic3r::Polygon</a></div><div class="ttdef"><b>Definition:</b> Polygon.hpp:16</div></div>
<div class="ttc" id="_multi_point_8hpp_html"><div class="ttname"><a href="_multi_point_8hpp.html">MultiPoint.hpp</a></div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a31cd9e89f63d38271adee5c010324857"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a31cd9e89f63d38271adee5c010324857">Slic3r::Polygon::split_at_index</a></div><div class="ttdeci">Polyline split_at_index(int index) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:64</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a9ab8db101e57f31ecfab23442dfcd62c"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a9ab8db101e57f31ecfab23442dfcd62c">Slic3r::Polygon::contains</a></div><div class="ttdeci">bool contains(const Point &amp;point) const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:135</div></div>
<div class="ttc" id="class_slic3r_1_1_multi_point_html"><div class="ttname"><a href="class_slic3r_1_1_multi_point.html">Slic3r::MultiPoint</a></div><div class="ttdef"><b>Definition:</b> MultiPoint.hpp:14</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_a9ec82a54ee54a2459292ba7c8b831bb9"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#a9ec82a54ee54a2459292ba7c8b831bb9">Slic3r::Polygon::is_valid</a></div><div class="ttdeci">bool is_valid() const</div><div class="ttdef"><b>Definition:</b> Polygon.cpp:127</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4_html_a55cedecf63a5819bfbe97f0a15108c3e"><div class="ttname"><a href="structboost_1_1polygon_1_1polygon__set__traits_3_01_polygons_01_4.html#a55cedecf63a5819bfbe97f0a15108c3e">boost::polygon::polygon_set_traits&lt; Polygons &gt;::iterator_type</a></div><div class="ttdeci">Polygons::const_iterator iterator_type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:124</div></div>
<div class="ttc" id="class_slic3r_1_1_polygon_html_abf32e05ca8a079c0d3193245dac5baa3"><div class="ttname"><a href="class_slic3r_1_1_polygon.html#abf32e05ca8a079c0d3193245dac5baa3">Slic3r::Polygon::Polygon</a></div><div class="ttdeci">Polygon()</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:23</div></div>
<div class="ttc" id="structboost_1_1polygon_1_1geometry__concept_3_01_polygon_01_4_html_a8ebe9403fd4243233c6adf190ba4a85e"><div class="ttname"><a href="structboost_1_1polygon_1_1geometry__concept_3_01_polygon_01_4.html#a8ebe9403fd4243233c6adf190ba4a85e">boost::polygon::geometry_concept&lt; Polygon &gt;::type</a></div><div class="ttdeci">polygon_concept type</div><div class="ttdef"><b>Definition:</b> Polygon.hpp:71</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
